#ifndef RELOCTABLE_H
#define RELOCTABLE_H
class RelocTable
{
  public:
    inline void push_back(u4 a) { table.push_back(a); }

    inline void reloc(MethodInfo * method,u4 target) {
      for(u4 i=0;i<table.size();i++) 
        method->relocAt(table[i],target);
    }

    inline void clear() {
      table.clear();
    }

    inline int  size() {
      return table.size();
    }


  private:
    std::vector<u4> table;
};

#endif
